package com.itheima.exception;

import com.itheima.comon.Result;

/**
 * @Description:
 * @Version: V1.0
 */
public class BusinessException extends RuntimeException {
    private Result result;

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public BusinessException(Result result) {
        this.result = result;
    }

    public BusinessException(String message, Result result) {
        super(message);
        this.result = result;
    }

    public BusinessException(String message, Throwable cause, Result result) {
        super(message, cause);
        this.result = result;
    }

    public BusinessException(Throwable cause, Result result) {
        super(cause);
        this.result = result;
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Result result) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.result = result;
    }
}
